package deepclone.cloneable;

import deepclone.serialize.Attachment;
import deepclone.serialize.WeeklyLog;

/**
 * @author wangLin
 * @version 1.0
 * @projectName prototype20210416
 * @className WeeklyLog1
 * @date 2021-04-20 周二
 * @time 11:09
 * @description TODO
 */


public class WeeklyLog1 implements Cloneable{
    private Attachment1 attachment1;
    /**
     * 周报名
     */
    private String name;
    /**
     * 日期
     */
    private String date;
    /**
     * 内容
     */
    private String content;

    public Attachment1 getAttachment1() {
        return attachment1;
    }

    public void setAttachment1(Attachment1 attachment1) {
        this.attachment1 = attachment1;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public WeeklyLog1 clone(){

        WeeklyLog1 weeklyLog1 = null;
        try {
            weeklyLog1 = (WeeklyLog1)super.clone();
            weeklyLog1.setAttachment1(this.attachment1.clone());
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }

        return weeklyLog1;
    }
}
